import { Component } from 'react'
import {View, Swiper, SwiperItem, Image} from '@tarojs/components'
import "taro-ui/dist/style/components/search-bar.scss";
import "taro-ui/dist/style/components/button.scss";
import "taro-ui/dist/style/components/icon.scss";
import {BASEURL} from '../../constants/global'
import './index.less'

class homeSwiper extends Component {
  render () {
    return (
      <View className='homeSwiper'>
        <Swiper
          indicatorDots='true'
          indicatorColor='#fff'
          indicatorActiveColor='#999'
          autoplay='true'
        >
          <SwiperItem>
            <Image src={`${BASEURL}/u31.png`} />
          </SwiperItem>
          <SwiperItem>
            <Image src={`${BASEURL}/u33.png`} />
          </SwiperItem>
          <SwiperItem>
            <Image src={`${BASEURL}/u31.png`} />
          </SwiperItem>
        </Swiper>
      </View>
    )
  }
}

export default homeSwiper

